tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

activity_main.xml (2754B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      3   - License, v. 2.0. If a copy of the MPL was not distributed with this
      4   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      5 
      6 
      7 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      8    xmlns:tools="http://schemas.android.com/tools"
      9    android:id="@+id/buttonList"
     10    android:layout_width="match_parent"
     11    android:layout_height="match_parent"
     12    android:layout_alignParentStart="true"
     13    android:layout_alignParentTop="true"
     14    android:gravity="center"
     15    android:orientation="vertical"
     16    android:padding="10dp"
     17    tools:context="org.mozilla.samples.glean.MainActivity">
     18 
     19    <!-- This is a dummy linear layout to capture focus and prevent the keyboard from popping
     20        when the app first launches.  This is a known issue of linear layouts and a common
     21        workaround. -->
     22    <LinearLayout android:focusable="true"
     23        android:focusableInTouchMode="true"
     24        android:layout_width="0px"
     25        android:layout_height="0px" >
     26        <requestFocus />
     27    </LinearLayout>
     28 
     29    <EditText
     30        android:id="@+id/etStringListInput"
     31        android:layout_width="match_parent"
     32        android:layout_height="wrap_content"
     33        android:ems="10"
     34        android:hint="@string/string_list_input_hint"
     35        android:inputType="textPersonName"
     36        android:autofillHints=""
     37        tools:ignore="UnusedAttribute" />
     38 
     39    <Button
     40        android:id="@+id/buttonGenerateData"
     41        android:layout_width="match_parent"
     42        android:layout_height="wrap_content"
     43        android:layout_marginTop="5dp"
     44        android:text="@string/generate_data"
     45        android:textAlignment="center" />
     46 
     47    <TextView
     48        android:id="@+id/textView"
     49        android:layout_width="match_parent"
     50        android:layout_height="wrap_content"
     51        android:layout_marginTop="5dp"
     52        android:text="@string/counter_metric_info" />
     53 
     54    <Button
     55        android:id="@+id/buttonCheckExperiments"
     56        android:layout_width="match_parent"
     57        android:layout_height="wrap_content"
     58        android:text="@string/check_experiments"
     59        android:textAlignment="center" />
     60 
     61    <TextView
     62        android:id="@+id/textViewExperimentStatus"
     63        android:layout_width="match_parent"
     64        android:layout_height="wrap_content"
     65        android:background="@android:color/white"
     66        android:text="@string/experiment_not_active"
     67        android:textStyle="italic" />
     68 
     69    <TextView
     70        android:id="@+id/textView3"
     71        android:layout_width="match_parent"
     72        android:layout_height="wrap_content"
     73        android:text="@string/check_experiments_btn_description" />
     74 
     75 </LinearLayout>