mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-11-04 08:43:52 +01:00 
			
		
		
		
	In app feedback (#4845)
* rebase * Progress * Completed UI and POST Request * removed invalid string resource * Removed unused code & Added string resources * Resolved Code style issues * Javadoc for getters & setters * Codestyle fixes * Minor Fixes * wip * Tests * Comments * Fixed Tests * Minor changes * minor change * Comments * Minor Fixes * fixed tests * Removed Butterknife * Fixed tests * Removed Unecessary strings * Minor chnages * Minor fix * Minor changes * Minor changes * Implemented Suggestions * Removed Redundant Toast
This commit is contained in:
		
							parent
							
								
									00760ba1c6
								
							
						
					
					
						commit
						fa0370438b
					
				
					 12 changed files with 777 additions and 5 deletions
				
			
		
							
								
								
									
										136
									
								
								app/src/main/res/layout/dialog_feedback.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										136
									
								
								app/src/main/res/layout/dialog_feedback.xml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,136 @@
 | 
			
		|||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<ScrollView
 | 
			
		||||
  xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
  android:layout_width="match_parent"
 | 
			
		||||
  android:layout_height="wrap_content"
 | 
			
		||||
  android:orientation="vertical"
 | 
			
		||||
  xmlns:app="http://schemas.android.com/apk/res-auto">
 | 
			
		||||
  <LinearLayout
 | 
			
		||||
    android:layout_width="match_parent"
 | 
			
		||||
    android:layout_height="wrap_content"
 | 
			
		||||
    android:orientation="vertical"
 | 
			
		||||
    >
 | 
			
		||||
 | 
			
		||||
    <TextView
 | 
			
		||||
      android:layout_margin="@dimen/dimen_6"
 | 
			
		||||
      android:padding="@dimen/tiny_gap"
 | 
			
		||||
      android:textSize="24sp"
 | 
			
		||||
      android:textColor="@color/black"
 | 
			
		||||
      android:text="@string/navigation_item_feedback"
 | 
			
		||||
      android:layout_width="wrap_content"
 | 
			
		||||
      android:layout_height="wrap_content" />
 | 
			
		||||
 | 
			
		||||
    <com.google.android.material.textfield.TextInputLayout
 | 
			
		||||
      android:id="@+id/feedback_item_edit_text_input_layout"
 | 
			
		||||
      android:layout_width="match_parent"
 | 
			
		||||
      android:layout_height="wrap_content"
 | 
			
		||||
      android:layout_marginStart="@dimen/dimen_6"
 | 
			
		||||
      android:layout_marginEnd="@dimen/dimen_6"
 | 
			
		||||
      >
 | 
			
		||||
 | 
			
		||||
      <fr.free.nrw.commons.ui.PasteSensitiveTextInputEditText
 | 
			
		||||
        android:id="@+id/feedback_item_edit_text"
 | 
			
		||||
        android:layout_width="match_parent"
 | 
			
		||||
        android:layout_height="match_parent"
 | 
			
		||||
        android:hint="@string/your_feedback"
 | 
			
		||||
        android:imeOptions="actionNext|flagNoExtractUi"
 | 
			
		||||
        android:lines="4"
 | 
			
		||||
        android:inputType="text|textMultiLine"
 | 
			
		||||
        app:allowFormatting="false" />
 | 
			
		||||
 | 
			
		||||
    </com.google.android.material.textfield.TextInputLayout>
 | 
			
		||||
 | 
			
		||||
    <TextView
 | 
			
		||||
      android:layout_margin="@dimen/dimen_6"
 | 
			
		||||
      android:padding="4dp"
 | 
			
		||||
      android:textSize="21sp"
 | 
			
		||||
      android:textColor="@color/black"
 | 
			
		||||
      android:text="@string/select_feedback_data_choice"
 | 
			
		||||
      android:layout_width="wrap_content"
 | 
			
		||||
      android:layout_height="wrap_content" />
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    <CheckBox
 | 
			
		||||
      android:id="@+id/api_level_checkbox"
 | 
			
		||||
      android:text="@string/api_level"
 | 
			
		||||
      android:layout_width="wrap_content"
 | 
			
		||||
      android:layout_height="wrap_content"
 | 
			
		||||
      android:checkMark="?android:attr/textCheckMark"
 | 
			
		||||
      android:checked="true"
 | 
			
		||||
      android:gravity="center_vertical"
 | 
			
		||||
      android:padding="@dimen/tiny_gap"
 | 
			
		||||
      android:layout_margin="@dimen/dimen_6"
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
    <CheckBox
 | 
			
		||||
      android:id="@+id/android_version_checkbox"
 | 
			
		||||
      android:text="@string/android_version"
 | 
			
		||||
      android:layout_width="wrap_content"
 | 
			
		||||
      android:layout_height="wrap_content"
 | 
			
		||||
      android:checkMark="?android:attr/textCheckMark"
 | 
			
		||||
      android:checked="true"
 | 
			
		||||
      android:gravity="center_vertical"
 | 
			
		||||
      android:padding="@dimen/tiny_gap"
 | 
			
		||||
      android:layout_margin="@dimen/dimen_6"
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
    <CheckBox
 | 
			
		||||
      android:id="@+id/device_manufacturer_checkbox"
 | 
			
		||||
      android:text="@string/device_manufacturer"
 | 
			
		||||
      android:layout_width="wrap_content"
 | 
			
		||||
      android:layout_height="wrap_content"
 | 
			
		||||
      android:checkMark="?android:attr/textCheckMark"
 | 
			
		||||
      android:checked="true"
 | 
			
		||||
      android:gravity="center_vertical"
 | 
			
		||||
      android:padding="@dimen/tiny_gap"
 | 
			
		||||
      android:layout_margin="@dimen/dimen_6"
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
    <CheckBox
 | 
			
		||||
      android:id="@+id/device_model_checkbox"
 | 
			
		||||
      android:text="@string/device_model"
 | 
			
		||||
      android:layout_width="wrap_content"
 | 
			
		||||
      android:layout_height="wrap_content"
 | 
			
		||||
      android:checkMark="?android:attr/textCheckMark"
 | 
			
		||||
      android:checked="true"
 | 
			
		||||
      android:gravity="center_vertical"
 | 
			
		||||
      android:padding="@dimen/tiny_gap"
 | 
			
		||||
      android:layout_margin="@dimen/dimen_6"
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
    <CheckBox
 | 
			
		||||
      android:id="@+id/device_name_checkbox"
 | 
			
		||||
      android:text="@string/device_name"
 | 
			
		||||
      android:layout_width="wrap_content"
 | 
			
		||||
      android:layout_height="wrap_content"
 | 
			
		||||
      android:checkMark="?android:attr/textCheckMark"
 | 
			
		||||
      android:checked="true"
 | 
			
		||||
      android:gravity="center_vertical"
 | 
			
		||||
      android:padding="@dimen/tiny_gap"
 | 
			
		||||
      android:layout_margin="@dimen/dimen_6"
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
    <CheckBox
 | 
			
		||||
      android:id="@+id/network_type_checkbox"
 | 
			
		||||
      android:text="@string/network_type"
 | 
			
		||||
      android:layout_width="wrap_content"
 | 
			
		||||
      android:layout_height="wrap_content"
 | 
			
		||||
      android:checkMark="?android:attr/textCheckMark"
 | 
			
		||||
      android:checked="true"
 | 
			
		||||
      android:gravity="center_vertical"
 | 
			
		||||
      android:padding="@dimen/tiny_gap"
 | 
			
		||||
      android:layout_margin="@dimen/dimen_6"
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
    <Button
 | 
			
		||||
      android:id="@+id/btn_submit_feedback"
 | 
			
		||||
      android:textColor="@color/white"
 | 
			
		||||
      android:layout_marginBottom="@dimen/dimen_10"
 | 
			
		||||
      android:gravity="center"
 | 
			
		||||
      android:layout_gravity="center"
 | 
			
		||||
      android:text="@string/submit"
 | 
			
		||||
      android:layout_width="wrap_content"
 | 
			
		||||
      android:layout_height="wrap_content" />
 | 
			
		||||
 | 
			
		||||
  </LinearLayout>
 | 
			
		||||
</ScrollView>
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue