mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 13:53:54 +01:00
* BugFix #2915 * Refractor ReviewActivity and ReviewImageFragment and the related layout files, to properly use the scrollview * Use ButterKnife for ViewBindings in ReviewImageFragment * updated resource id names to follow underscore notation in xml * Use menu item instead of ImageView over toolbar in ReviewActivity * use tools:replace instead of android:text for dummy texts * merge nested if's [Codacy review] * updated string review_category_yes_button_text, use textAllCaps in yes and no button in ReviewFragment * updated other strings to use non bold letters
This commit is contained in:
parent
37e9eae314
commit
bb7ab62b34
6 changed files with 221 additions and 198 deletions
|
|
@ -1,70 +1,80 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:paddingBottom="10dp"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
android:layout_above="@id/ll_container_buttons">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="6dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_review_question"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp"
|
||||
android:gravity="center_vertical"
|
||||
tools:text="testing1"
|
||||
android:textAlignment="center"
|
||||
android:textColor="?attr/reviewHeading"
|
||||
android:textSize="32sp"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="6dp"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/tv_review_question_context"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:gravity="center_vertical"
|
||||
tools:text="testing2"
|
||||
android:textAlignment="center"
|
||||
android:textSize="22sp"/>
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reviewQuestion"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="testing1"
|
||||
android:textAlignment="center"
|
||||
android:textColor="?attr/reviewHeading"
|
||||
android:textSize="32sp" />
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_container_buttons"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="70dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:orientation="horizontal"
|
||||
android:padding="2dp"
|
||||
android:weightSum="2">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reviewQuestionContext"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="testing2"
|
||||
android:textAlignment="center"
|
||||
android:textSize="22sp" />
|
||||
<Button
|
||||
android:id="@+id/button_yes"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_margin="@dimen/activity_margin_horizontal"
|
||||
android:background="@android:color/transparent"
|
||||
android:text="@string/yes"
|
||||
android:textAllCaps="true"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/yes_button_color"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="70dp"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="2">
|
||||
<Button
|
||||
android:textAllCaps="true"
|
||||
android:id="@+id/button_no"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_margin="@dimen/activity_margin_horizontal"
|
||||
android:background="@android:color/transparent"
|
||||
android:text="@string/no"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/no_button_color"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/yesButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/activity_margin_horizontal"
|
||||
android:layout_weight="1"
|
||||
android:background="@android:color/transparent"
|
||||
android:text="@string/yes"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/yes_button_color"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/noButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/activity_margin_horizontal"
|
||||
android:layout_weight="1"
|
||||
android:background="@android:color/transparent"
|
||||
android:text="@string/no"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/no_button_color"
|
||||
android:textSize="18sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue