ソース掲示板




すべてから検索

キーワード   条件 表示 現行ログ 過去ログ トピックス 名前 本文

  メンテナンス 前画面に戻る

対象スレッド 件名: リソース : 画面と文字列
名前: lightbox
処理選択
パスワード

件名 リソース : 画面と文字列
名前 lightbox
コメント
@DIV
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:tools="http://schemas.android.com/tools"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:paddingLeft="@dimen/activity_horizontal_margin"
                android:paddingRight="@dimen/activity_horizontal_margin"
                android:paddingTop="@dimen/activity_vertical_margin"
                android:paddingBottom="@dimen/activity_vertical_margin"
                tools:context=".MainActivity">

    <Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="戻る"
        android:id="@+id/button"
        android:layout_alignParentEnd="true"/>

    <WebView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/webView"
        android:layout_below="@+id/button"
        android:visibility="visible"/>

</RelativeLayout>
@END

@HTML
<img src="https://lh3.googleusercontent.com/-G-t7SbJfH3I/VgO0-NmeiKI/AAAAAAAAb00/ORxzCWm7WLI/s640-Ic42/_img.png" style="border: solid 1px #000000">
@HEND

[[strings.xml]]
タイトルの文字列を変更しています
@DIV
<resources>
    <string name="app_name">@c:red(標準的な WebView)</string>

    <string name="action_settings">Settings</string>
</resources>
@END

[["src\main\res\values-v21\styles.xml"]]
タイトルを黒くする為に設定しています
@DIV
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="AppTheme" parent="android:Theme.Material.Light.@c:red(DarkActionBar)">
    </style>
</resources>
@END