Fixed copy paste bar
This commit is contained in:
parent
2c0753aed4
commit
088909c1b9
1 changed files with 10 additions and 5 deletions
|
|
@ -3,9 +3,11 @@ package com.ericsson.uecontrol.gui.fragments;
|
|||
import android.app.AlertDialog;
|
||||
import android.app.Dialog;
|
||||
import android.app.DialogFragment;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.os.Bundle;
|
||||
import android.text.InputType;
|
||||
import android.view.ContextThemeWrapper;
|
||||
import android.widget.EditText;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
|
@ -29,11 +31,14 @@ public class ConfigureDialog extends DialogFragment {
|
|||
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||
inputs = new HashMap<String, EditText>();
|
||||
|
||||
// Fix for CopyPaste bar not visible
|
||||
Context context = new ContextThemeWrapper(getActivity(), android.R.style.Theme_Holo_Light);
|
||||
|
||||
// Create dialog
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
||||
builder.setTitle(R.string.configure_behaviour);
|
||||
|
||||
LinearLayout root = new LinearLayout(getActivity());
|
||||
LinearLayout root = new LinearLayout(context);
|
||||
root.setOrientation(LinearLayout.VERTICAL);
|
||||
root.setLayoutParams(new LinearLayout.LayoutParams(
|
||||
LinearLayout.LayoutParams.MATCH_PARENT,
|
||||
|
|
@ -44,20 +49,20 @@ public class ConfigureDialog extends DialogFragment {
|
|||
UeBehaviour behaviour = MainActivity.getExecutor().getBehaviourList().get(this.getArguments().getInt("object_index"));
|
||||
confer = new Configurator(behaviour);
|
||||
for(ConfigurationParam confParam : confer.getConfiguration()){
|
||||
LinearLayout layout = new LinearLayout(getActivity());
|
||||
LinearLayout layout = new LinearLayout(context);
|
||||
layout.setOrientation(LinearLayout.HORIZONTAL);
|
||||
layout.setLayoutParams(new LinearLayout.LayoutParams(
|
||||
LinearLayout.LayoutParams.MATCH_PARENT,
|
||||
LinearLayout.LayoutParams.MATCH_PARENT));
|
||||
|
||||
TextView label = new TextView(getActivity());
|
||||
TextView label = new TextView(context);
|
||||
label.setText(confParam.getNiceName()+": ");
|
||||
label.setLayoutParams(new LinearLayout.LayoutParams(
|
||||
LinearLayout.LayoutParams.WRAP_CONTENT,
|
||||
LinearLayout.LayoutParams.WRAP_CONTENT));
|
||||
layout.addView(label);
|
||||
|
||||
EditText input = new EditText(getActivity());
|
||||
EditText input = new EditText(context);
|
||||
input.setLayoutParams(new LinearLayout.LayoutParams(
|
||||
LinearLayout.LayoutParams.MATCH_PARENT,
|
||||
LinearLayout.LayoutParams.WRAP_CONTENT));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue