display the file path at the Edit dialog
This commit is contained in:
parent
28ab32a3ad
commit
6a21c8a27c
|
@ -18,6 +18,7 @@ import android.view.MotionEvent;
|
|||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.simplemobiletools.gallery.Constants;
|
||||
import com.simplemobiletools.gallery.MyViewPager;
|
||||
|
@ -208,6 +209,9 @@ public class ViewPagerActivity extends AppCompatActivity
|
|||
final EditText extensionET = (EditText) renameFileView.findViewById(R.id.extension);
|
||||
extensionET.setText(extension);
|
||||
|
||||
final TextView filePath = (TextView) renameFileView.findViewById(R.id.file_path);
|
||||
filePath.setText(file.getParent() + "/");
|
||||
|
||||
final AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||
builder.setTitle(getResources().getString(R.string.rename_file));
|
||||
builder.setView(renameFileView);
|
||||
|
|
|
@ -1,11 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout android:id="@+id/rename_file_holder"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/activity_margin">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/file_path"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/activity_margin"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/file_name_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/file_name"/>
|
||||
|
@ -18,6 +26,7 @@
|
|||
android:singleLine="true"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/extension_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/extension"/>
|
||||
|
|
Loading…
Reference in New Issue