问:
Random packages-IndentationError: unindent does not match any outer indentation level
```<code>random_generated = rando.randint(1,6)
print("This is the number generated", random_generated)

get_answer = input("Wanna play again!Enter: ")
           = int(input("Wanna play again? Enter y/n: "))
    while (True)
        = input("Wanna play again? Enter y/n: ")
        if get_answer == 'y':
            random_generated = random.randint(1,6)
            print('This is the number generated', random_generated)
            if get_answer == 'n':
                break
</code>```

答:
There are many errors with this code.

Here is a full working program:

```<code>import random

random_generated = random.randint(1,6)
print("This is the number generated:", random_generated)

get_answer  = input("Wanna play again? Enter y/n: ")
if get_answer == 'y':
    while get_answer == 'y':
        get_answer = input("Wanna play again? Enter y/n: ")
        if get_answer == 'y':
            random_generated = random.randint(1,6)
            print('This is the number generated', random_generated)
        else:
            break
</code>```

Not to be degrading, but I'd recommend re-learning the fundamentals of Python. I'd recommend the Sololearn Python3 Tutorial. There are many things fundamentally incorrect with your code. Just, focus on learning the syntax and basics of python, And boom, you'll be a decent programmer.

Body:
There are many errors with this code.

Here is a full working program:

import random

random_generated = random.randint(1,6)
print("This is the number generated:", random_generated)

get_answer  = input("Wanna play again? Enter y/n: ")
if get_answer == 'y':
    while get_answer == 'y':
        get_answer = input("Wanna play again? Enter y/n: ")
        if get_answer == 'y':
            random_generated = random.randint(1,6)
            print('This is the number generated', random_generated)
        else:
            break

Not to be degrading, but I'd recommend re-learning the fundamentals of Python. I'd recommend the Sololearn Python3 Tutorial. There are many things fundamentally incorrect with your code. Just, focus on learning the syntax and basics of python, And boom, you'll be a decent programmer.


来源: stackexchange

问:
url rewriting + Asp.Net Login Form = Death
on our site we do url rewriting to generate massive amounts of database generated pages. on every page, there is a Login control for users. like this:

Internal aspx page: /DB.aspx?id=123
User visible url: /ABC/123.aspx, /ABC/456.aspx ... (url rewritten)

unfortunately, the  tag on each page has an action attribute of "DB.aspx?id=123". when the user clicks the button the browser is posting to /ABC/DB.aspx?id=123 which of course does not exist.

solutions i tried:
1. change the action attribute by subclassing HtmlForm. this destroys the all other forms on the site.
2. remove the action attribute (so that the browser is always posting to the same url). this works on the rewritten pages but on "/" (the default.aspx in the root dir) i get a message that the verb post is not allowed on "/" (iis 6 and i have no control over mappings)

anybody?

答: If you upgrade to ASP.NET 3.5 SP1, the action property is now properly recognized and can be set from codebehind.</p>

ContentLicense: CC BY-SA 2.5

OwnerDisplayName: John Sheehan

ContentLicense: CC BY-SA 4.0


问:
Why does my background-image stretch only when adding background-repeat: repeat y?
I am trying to have a background image cover the vertical length of the page. When I add background-repeat: repeat-y; the image stretches. When I have background-repeat:no-repeat; it doesn't stretch. What is happening here? I don't want it to stretch, I just want it to repeat until the bottom of the page.

Here is the CSS:

```<code>  .backgroundTest{
  background-color:white;
  background-image:url(../images/sideBanner.jpg);
  position:absolute;
  background-size:175px 100%; /* I need this, otherwise the background image is too big */
  background-repeat: repeat-y;
}
</code>```

The main issue is I want an image along the left side of the page (width 175 px) with all the content to the right of this image. I'll take any solution!

答:
I'd wrap the image in a
 and use the background-size CSS property with one of these two values:

contain

Scales the image as large as possible without cropping or stretching the image.

cover

Scales the image as large as possible without stretching the image. If the proportions of the image differ from the element, it is cropped either vertically or horizontally so that no empty space remains.

e.g.

```<code>.wrapper-container {
    position: relative;
    height: 100%;
    width: 175px;
}

.backgroundTest {
    background-image: url("../images/sideBanner.jpg");
    background-repeat: repeat-y;
    background-size: contain;
    background-color: white;
    position: absolute;
}
</code>```

Body:
I am trying to have a background image cover the vertical length of the page. When I add background-repeat: repeat-y; the image stretches. When I have background-repeat:no-repeat; it doesn't stretch. What is happening here? I don't want it to stretch, I just want it to repeat until the bottom of the page.

Here is the CSS:

  .backgroundTest{
  background-color:white;
  background-image:url(../images/sideBanner.jpg);
  position:absolute;
  background-size:175px 100%; /* I need this, otherwise the background image is too big */
  background-repeat: repeat-y;
}

The main issue is I want an image along the left side of the page (width 175 px) with all the content to the right of this image. I'll take any solution!

Body:
I'd wrap the image in a <div> and use the background-size CSS property with one of these two values:

contain

Scales the image as large as possible without cropping or stretching the image.

cover

Scales the image as large as possible without stretching the image. If the proportions of the image differ from the element, it is cropped either vertically or horizontally so that no empty space remains.

e.g.

.wrapper-container {
    position: relative;
    height: 100%;
    width: 175px;
}

.backgroundTest {
    background-image: url("../images/sideBanner.jpg");
    background-repeat: repeat-y;
    background-size: contain;
    background-color: white;
    position: absolute;
}


问:
OpenGL not displaying indicies correclty for cube?
I was teaching myself opengl (in c++) and I thought it through and got a working set of indices that make a cube:

```<code>GLushort indicies[] =
{
    2, 0, 1,
    1, 2, 3,
    3, 1, 4,
    5, 1, 4,
    4, 5, 7,
    7, 5, 6,
    0, 7, 6,
    0, 7, 2,
    7, 0, 1,
    1, 7, 4,
    6, 5, 3,
    6, 3, 2
};
</code>```

now, I'm trying to load in an obj file from blender of a cube and these are the indicies it's giving me:

```<code>GLushort indicies[] =
{
    5,3,1,
    3,8,4,
    7,6,8,
    2,8,6,
    1,4,2,
    5,2,6,
    5,7,3,
    3,7,8,
    7,5,6,
    2,4,8,
    1,3,4,
    5,1,2
};
</code>```

From my understanding, it doesn't really matter what order do your indicies in, as long as each set of three make a triangle. However, when I ran what blender's exported obj file gave me, my cube was all messed up. I though maybe the indicies had to be base 0 instead of base one, so I subtracted 1 from each index to make them base 0:

```<code>GLushort indicies[] =
{
    4,2,0,
    2,7,3,
    6,5,7,
    1,7,5,
    0,3,1,
    4,1,5,
    4,6,2,
    2,6,7,
    6,4,5,
    1,3,7,
    0,2,3,
    4,0,1
};
</code>```

My cube was somewhat better but still had a bottom that looked like this:

What am I missing? Shouldn't any combination of indicies, no matter how you think of them, work as long as each set of three make a triangle?

答:
You cube, in Blender export, is like this (or some isomorphism of it)

```<code>  3----7
 /    /|
0----1 |
|    | 6
|    |/
4----5
</code>```

with 2 hidden behind.

(4,2,0) is half the left side.
(2,7,3) is half the back.
(6,5,7) is half the right side, and so on.

Your vertices, though, don't make sense. Let's say this is the first triangle

```<code>0----1
|   /
|/
2
</code>```

Then you'll have

```<code>0----1
|   /|
|/   |
2----3
</code>```

But notice that (2,0,1) are clockwise and (1,2,3) are counter-clockwise. OpenGL, like most 3D system will consider only CW or CCW triangles as front-facing and will not display the backward-facing ones.

That's a first issue to solve. Make sure all triangles are CW or all triangles are CCW.

Body:
I was teaching myself opengl (in c++) and I thought it through and got a working set of indices that make a cube:

GLushort indicies[] =
{
    2, 0, 1,
    1, 2, 3,
    3, 1, 4,
    5, 1, 4,
    4, 5, 7,
    7, 5, 6,
    0, 7, 6,
    0, 7, 2,
    7, 0, 1,
    1, 7, 4,
    6, 5, 3,
    6, 3, 2
};

now, I'm trying to load in an obj file from blender of a cube and these are the indicies it's giving me:

GLushort indicies[] =
{
    5,3,1,
    3,8,4,
    7,6,8,
    2,8,6,
    1,4,2,
    5,2,6,
    5,7,3,
    3,7,8,
    7,5,6,
    2,4,8,
    1,3,4,
    5,1,2
};

From my understanding, it doesn't really matter what order do your indicies in, as long as each set of three make a triangle. However, when I ran what blender's exported obj file gave me, my cube was all messed up. I though maybe the indicies had to be base 0 instead of base one, so I subtracted 1 from each index to make them base 0:

GLushort indicies[] =
{
    4,2,0,
    2,7,3,
    6,5,7,
    1,7,5,
    0,3,1,
    4,1,5,
    4,6,2,
    2,6,7,
    6,4,5,
    1,3,7,
    0,2,3,
    4,0,1
};

My cube was somewhat better but still had a bottom that looked like this:

What am I missing? Shouldn't any combination of indicies, no matter how you think of them, work as long as each set of three make a triangle?

Body:
You cube, in Blender export, is like this (or some isomorphism of it)

  3----7
 /    /|
0----1 |
|    | 6
|    |/
4----5

with 2 hidden behind.

(4,2,0) is half the left side.
(2,7,3) is half the back.
(6,5,7) is half the right side, and so on.

Your vertices, though, don't make sense. Let's say this is the first triangle

0----1
|   /
|/
2

Then you'll have

0----1
|   /|
|/   |
2----3

But notice that (2,0,1) are clockwise and (1,2,3) are counter-clockwise. OpenGL, like most 3D system will consider only CW or CCW triangles as front-facing and will not display the backward-facing ones.

That's a first issue to solve. Make sure all triangles are CW or all triangles are CCW.


问:
Is it possible to have a ctrl+click able link to a file with relative path in the comment
I need to link a file in a comment so that others can click it and the explorer opens the folder or the file opens
I need something like this:</p>

```<code>/// <summary>
/// Does something see file://$(SolutionDir)/SomeFolder/somefile.txt"
/// </summary>
public void MyMethod()
{}
</code>```

答:
You can try the following comment to do it.

```<code>/// <summary>
    /// This is a math function I found <see href="file:///test">HERE</see>
    /// </summary>
    public void MyMethod()
    { }
</code>```

The rule is file:/// + your relative file path.

This is my tested result:

Body:
I need to link a file in a comment so that others can click it and the explorer opens the folder or the file opens
I need something like this:

///
/// Does something see file://$(SolutionDir)/SomeFolder/somefile.txt"
///
public void MyMethod()
{}

Body:
You can try the following comment to do it.

/// <summary>
    /// This is a math function I found <see href="file:///test">HERE</see>
    /// </summary>
    public void MyMethod()
    { }

The rule is file:/// + your relative file path.

This is my tested result:


问:
how to make this "action-packed, random data" being echoed in a terminal?
OK, this isn't really a question to achieve anything practical, but still it is a serious question and I hope it will be taken seriously and mods won't punish me for this :)

I'm sure majority of you have seen some good action movie, where CIA or FBI or hackers or any other "pc nerds" are "retrieving some information" and when they actually show their screens/monitors/desktops, there is a lot of random data being displayed and it's just so thrilling :D

So, we're shooting a movie and I need to reconstruct such a scene. My OS is ubuntu 10.10.

I think i've read somewhere on the internet once that shell can actually be recorded and then played back, but I'm not sure how it worked.

Basically, any script/program/code/solution which does the trick is very well welcome.

If there's anyone who could come up with a solution, it would be so cool!

Let's make this fun, shall we?

BOUNTY EDIT: Still need some more ideas, so I'm offering a bounty for the best new upcoming idea.

答:
Hey man, I know I come after the blow, but anyway:
I don't know if you already heard of it, but I guess you could take a look a http://hackertyper.net/ .

It's basically a website where you choose a source code (from the linux kernel or anything you upload to it), and the script on this site will write 5 or 6 characters of the source code on screen each time you hit the keyboard.

It's actually pretty fun to try :)

ContentLicense: CC BY-SA 3.0


问:
Dropdown button display text cut off Flutter
Hi I have a dropdown button whose hint and selected value text is cut off when too long:

It should be displaying "Department Code / Department Number"

Code:

```<code>DropdownButton<String> dropdownList(BuildContext context) {
  return new DropdownButton<String>(
    hint: new Text(
      "Department Code / Department Number",
    ),
    value: selectedDept,
    isDense: true,
    onChanged: (String newValue) {
      //...
    },
    items: _item.map((Dept map) {
      return new DropdownMenuItem<String>(
        value: map.code,
        child:
            new Text(map.code, style: new TextStyle(color: Colors.black)),
      );
    }).toList(),
    isExpanded: true,
  );
}

 Widget build(BuildContext context) {
    return Scaffold(
        child: Column(
            children: <Widget>[
                Container(
                  padding: EdgeInsets.fromLTRB(
                      20, 20, 10, 20),
                  decoration: ShapeDecoration(
                    shape: RoundedRectangleBorder(
                      side: BorderSide(
                          width: 1.0,
                          style: BorderStyle.solid,
                          color: Colors.grey[400]),
                      borderRadius:
                          BorderRadius.all(
                              Radius.circular(
                                  15.0)),
                    ),
                  ),
                  child:
                      DropdownButtonHideUnderline(
                          child: dropdownList(
                              context)),
                )
            ]
        )

    )
}
</code>```

Any idea how to fix the display?

答:
In the Container(), add in BoxConstraints and specify minHeight and maxHeight</p>

```<code>constraints: new BoxConstraints(
  minHeight: 50.0,
  maxHeight: 70.0,
)
</code>```

Body:
Hi I have a dropdown button whose hint and selected value text is cut off when too long:

It should be displaying "Department Code / Department Number"

Code:

DropdownButton<String> dropdownList(BuildContext context) {
  return new DropdownButton<String>(
    hint: new Text(
      "Department Code / Department Number",
    ),
    value: selectedDept,
    isDense: true,
    onChanged: (String newValue) {
      //...
    },
    items: _item.map((Dept map) {
      return new DropdownMenuItem<String>(
        value: map.code,
        child:
            new Text(map.code, style: new TextStyle(color: Colors.black)),
      );
    }).toList(),
    isExpanded: true,
  );
}

 Widget build(BuildContext context) {
    return Scaffold(
        child: Column(
            children: <Widget>[
                Container(
                  padding: EdgeInsets.fromLTRB(
                      20, 20, 10, 20),
                  decoration: ShapeDecoration(
                    shape: RoundedRectangleBorder(
                      side: BorderSide(
                          width: 1.0,
                          style: BorderStyle.solid,
                          color: Colors.grey[400]),
                      borderRadius:
                          BorderRadius.all(
                              Radius.circular(
                                  15.0)),
                    ),
                  ),
                  child:
                      DropdownButtonHideUnderline(
                          child: dropdownList(
                              context)),
                )
            ]
        )

    )
}

Any idea how to fix the display?

Body:
In the Container(), add in BoxConstraints and specify minHeight and maxHeight

constraints: new BoxConstraints(
  minHeight: 50.0,
  maxHeight: 70.0,
)


问:
How come declaring something as a double data type would lead the ide to think it is a integer?
I am very confused on how a declared double data type would lead to the intellij ide to believe I was requiring a int to declare. Can someone give me some insight on this?

Here is the code in a picture:
enter image description here

答:
Double Data type :

The double data type is a double-precision 64-bit IEEE 754 floating point. Its value range is unlimited. The double data type is generally used for decimal values just like float. The double data type also should never be used for precise values, such as currency. Its default value is 0.0d.

Example: double d1 = 12.3

Double[] yu=new Double[cholo]

you are trying to declare an array of size double which can be floating, so you should declare an integer in the [], As it indicates the number of the element you want to store of type double.


问:
Query Failed You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax
I have this problem updating content into database. error is :

Query FailedYou have an error in your SQL syntax; check the
  manual that corresponds to your MariaDB server version for the right
  syntax to use near 'post_content = 'kjgljkkjhklj  ', post_image =
  '45739895_2381062595269282_8123898' at line 1

this is my whole code:

```<code>if (isset($_GET['p_id'])) {
    $the_post_id = $_GET['p_id'];
}

$query = "SELECT * FROM posts WHERE post_id = $the_post_id";
$select_posts_by_id = mysqli_query($connection, $query);

while ($row = mysqli_fetch_assoc($select_posts_by_id)) {
    $post_id = $row['post_id'];
    $post_author = $row['post_author'];
    $post_title = $row['post_title'];
    $post_category_id = $row['post_category_id'];
    $post_status = $row['post_status'];
    $post_image = $row['post_image'];
    $post_content = $row['post_content'];
    $post_tags = $row['post_tags'];
    $post_comment = $row['post_comment_count'];
    $post_date = $row['post_date'];
}

// if update post button is clicked
if (isset($_POST['update_post'])) {

    $post_author = $_POST['post_author'];
    $post_title = $_POST['post_title'];
    $post_category_id = $_POST['post_category'];
    $post_status = $_POST['post_status'];
    $post_image = $_FILES['image']['name'];
    $post_image_temp = $_FILES['image']['tmp_name'];
    $post_content = $_POST['post_content'];
    $post_tags = $_POST['post_tags'];

    move_uploaded_file($post_image_temp, "../images/{$post_image}");

    if (empty($post_image)) {
        $query = "SELECT * FROM posts WHERE post_id = $the_post_id ";

    }

    $query = "UPDATE posts SET ";
    $query .= "post_title = '{$post_title}', ";
    $query .= "post_category_id = '{$post_category_id}', ";
    $query .= "post_date = now(), ";
    $query .= "post_author = '{$post_author}', ";
    $query .= "post_status = '{$post_status}', ";
    $query .= "post_tags = '{$post_tags}' ";
    $query .= "post_content = '{$post_content}', ";
    $query .= "post_image = '{$post_image}' ";
    $query .= "WHERE post_id = {$the_post_id}"; // this is from the get request

    $update_post = mysqli_query($connection, $query);

    confirmQuery($update_post);

}
</code>```

this is the form below:

```<code><form action="" method="POST" enctype="multipart/form-data">

    <div class="form-group">
        <label for="title">Post Title</label>
        <input value="<?php echo $post_title; ?>" type="text" name="post_title" class="form-control" required="true">
    </div>

    <div class="form-group">
        <label for="post_category">Post Categories</label>
        <select name="post_category" id="" class="form-control form-control-md">
            <?php
                $query = "SELECT * FROM categories";
                $select_categories = mysqli_query($connection, $query);

                confirmQuery($select_categories); // this is from functions.php

                while ($row = mysqli_fetch_assoc($select_categories)) {
                        $cat_id = $row['cat_id'];
                        $cat_title = $row['cat_title'];

                        echo "<option value='{$cat_id}'>{$cat_title}</option>";
                    }
             ?>
        </select>
    </div>

    <div class="form-group">
        <label for="author">Post Author</label>
        <input value="<?php echo $post_author; ?>" type="text" name="post_author" class="form-control" required="true">
    </div>

    <div class="form-group">
        <label for="post_status">Post Status</label>
        <input value="<?php echo $post_status; ?>" type="text" name="post_status" class="form-control" required="true">
    </div>

    <div class="form-group">
        <label for="image">Post Image</label>
        <img width="100px" src="../images/<?php echo $post_image; ?>">
        <input type="file" name="image" required="true">
    </div>

    <div class="form-group">
        <label for="post_tags">Post Tags</label>
        <input value="<?php echo $post_tags; ?>" type="text" name="post_tags" class="form-control" required="true">
    </div>

    <div class="form-group">
        <label for="post_content">Post Content</label>
        <textarea name="post_content" class="form-control" id="" cols="30" rows="10" required="true">
            <?php echo $post_content; ?>
        </textarea>
    </div>

    <div class="form-group">
        <input type="submit" name="update_post" class="btn btn-primary" value="Update Post">
    </div>
</form>
</code>```

答:
try replace

```<code>$query .= "WHERE post_id = {$the_post_id}";
</code>```

with

```<code>$query .= "WHERE post_id = {$the_post_id} ";
</code>```

That should do the magic.

Body:
I have this problem updating content into database. error is :

Query FailedYou have an error in your SQL syntax; check the
  manual that corresponds to your MariaDB server version for the right
  syntax to use near 'post_content = 'kjgljkkjhklj  ', post_image =
  '45739895_2381062595269282_8123898' at line 1

this is my whole code:

if (isset($_GET['p_id'])) {
    $the_post_id = $_GET['p_id'];
}

$query = "SELECT * FROM posts WHERE post_id = $the_post_id";
$select_posts_by_id = mysqli_query($connection, $query);

while ($row = mysqli_fetch_assoc($select_posts_by_id)) {
    $post_id = $row['post_id'];
    $post_author = $row['post_author'];
    $post_title = $row['post_title'];
    $post_category_id = $row['post_category_id'];
    $post_status = $row['post_status'];
    $post_image = $row['post_image'];
    $post_content = $row['post_content'];
    $post_tags = $row['post_tags'];
    $post_comment = $row['post_comment_count'];
    $post_date = $row['post_date'];
}

// if update post button is clicked
if (isset($_POST['update_post'])) {

    $post_author = $_POST['post_author'];
    $post_title = $_POST['post_title'];
    $post_category_id = $_POST['post_category'];
    $post_status = $_POST['post_status'];
    $post_image = $_FILES['image']['name'];
    $post_image_temp = $_FILES['image']['tmp_name'];
    $post_content = $_POST['post_content'];
    $post_tags = $_POST['post_tags'];

    move_uploaded_file($post_image_temp, "../images/{$post_image}");

    if (empty($post_image)) {
        $query = "SELECT * FROM posts WHERE post_id = $the_post_id ";

    }

    $query = "UPDATE posts SET ";
    $query .= "post_title = '{$post_title}', ";
    $query .= "post_category_id = '{$post_category_id}', ";
    $query .= "post_date = now(), ";
    $query .= "post_author = '{$post_author}', ";
    $query .= "post_status = '{$post_status}', ";
    $query .= "post_tags = '{$post_tags}' ";
    $query .= "post_content = '{$post_content}', ";
    $query .= "post_image = '{$post_image}' ";
    $query .= "WHERE post_id = {$the_post_id}"; // this is from the get request

    $update_post = mysqli_query($connection, $query);

    confirmQuery($update_post);

}

this is the form below:

<form action="" method="POST" enctype="multipart/form-data">

        Post Title
        <input value="<?php echo $post_title; ?>" type="text" name="post_title" class="form-control" required="true">

        Post Categories
        <select name="post_category" id="" class="form-control form-control-md">
            <?php
                $query = "SELECT * FROM categories";
                $select_categories = mysqli_query($connection, $query);

                confirmQuery($select_categories); // this is from functions.php

                while ($row = mysqli_fetch_assoc($select_categories)) {
                        $cat_id = $row['cat_id'];
                        $cat_title = $row['cat_title'];

                        echo "<option value='{$cat_id}'>{$cat_title}</option>";
                    }
             ?>
        </select>

        Post Author
        <input value="<?php echo $post_author; ?>" type="text" name="post_author" class="form-control" required="true">

        Post Status
        <input value="<?php echo $post_status; ?>" type="text" name="post_status" class="form-control" required="true">

        Post Image
        <img width="100px" src="../images/<?php echo $post_image; ?>">
        <input type="file" name="image" required="true">

        Post Tags
        <input value="<?php echo $post_tags; ?>" type="text" name="post_tags" class="form-control" required="true">

        Post Content
        <textarea name="post_content" class="form-control" id="" cols="30" rows="10" required="true">
            <?php echo $post_content; ?>
        </textarea>

        <input type="submit" name="update_post" class="btn btn-primary" value="Update Post">

</form>

Body:
try replace

$query .= "WHERE post_id = {$the_post_id}";

with

$query .= "WHERE post_id = {$the_post_id} ";

That should do the magic.


问:
Soft keyboard hides edit text inside scroll view(Xamarin Android)
I new developer for 'Xamarin Android' ,i faced one issue now i will explain.

Inside scroll view have multiple edit text ,when i click or focus last edit text showing soft key board,but what problem means soft keyboard hides last edit text,but cursor was focused and also typed.

Now i need when i click or focus edit text means edit text show only above the soft key board.

I already fixed same issue in android studio using window Soft Input Mode = 'adjust pan|adjust resize' like,but in 'Xamarin android'  i added both soft input parameter,but i can't get output please any one help me.

```Example Class

    LlLayout = FindViewById<LinearLayout>(Resource.Id.ABL_Runtime);

                ScrollView sv = new ScrollView(this);
                //sv.LayoutParameters = linearLayoutParams;

                ABlayout = new AbsoluteLayout(this);
                //ABlayout.LayoutParameters = linearLayoutParams;

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pSpaceBetweenControl;
                EditText txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 1";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 2";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 3";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 4";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 5";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pSpaceBetweenControl;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 6";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 7";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 8";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 10";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 11";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 12";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 13";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 14";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 15";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 16";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 17";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 18";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 19";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 20";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 21";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 22";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 23";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 24";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 25";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 26";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 27";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 28";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 29";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                LlLayout.AddView(ABlayout);

Example XML File

    <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:orientation="vertical"
    android:layout_height="match_parent">

    <android.support.v4.widget.NestedScrollView android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="visible"
        android:fillViewport="true">

    <LinearLayout android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:id="@+id/ABL_Runtime">

        </LinearLayout>

    </android.support.v4.widget.NestedScrollView>

</LinearLayout>
```

I edited my Question with example class and xml ,i created edit text run time and also get values runtime.Here i m using absolute layout for set edittext based on x ,y position.

答:
Please try to use only one of them instead:

```<code>Window.SetSoftInputMode(SoftInput.AdjustPan);
</code>```

The activity's main window is not resized to make room for the soft keyboard. Rather, the contents of the window are automatically panned so that the current focus is never obscured by the keyboard and users can always see what they are typing. This is generally less desirable than resizing, because the user may need to close the soft keyboard to get at and interact with obscured parts of the window.

```<code>Window.SetSoftInputMode(SoftInput.AdjustResize);
</code>```

The activity's main window is always resized to make room for the soft
  keyboard on screen.

If you are working on a Xamarin.forms project, you can read this document for more information.

Body:
I new developer for 'Xamarin Android' ,i faced one issue now i will explain.

Inside scroll view have multiple edit text ,when i click or focus last edit text showing soft key board,but what problem means soft keyboard hides last edit text,but cursor was focused and also typed.

Now i need when i click or focus edit text means edit text show only above the soft key board.

I already fixed same issue in android studio using window Soft Input Mode = 'adjust pan|adjust resize' like,but in 'Xamarin android'  i added both soft input parameter,but i can't get output please any one help me.

Example Class

    LlLayout = FindViewById<LinearLayout>(Resource.Id.ABL_Runtime);

                ScrollView sv = new ScrollView(this);
                //sv.LayoutParameters = linearLayoutParams;

                ABlayout = new AbsoluteLayout(this);
                //ABlayout.LayoutParameters = linearLayoutParams;

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pSpaceBetweenControl;
                EditText txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 1";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 2";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 3";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 4";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 5";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pSpaceBetweenControl;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 6";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 7";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 8";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 10";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 11";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 12";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 13";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 14";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 15";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 16";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 17";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 18";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 19";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 20";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 21";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 22";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 23";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 24";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 25";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 26";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 27";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 28";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                AppConstant.pLastControlTop = AppConstant.pLastControlTop + AppConstant.pControlHeight;
                txtTitle = new EditText(this);
                txtTitle.Text = "Job ID 29";
                txtTitle.Tag = "Job ID sent from HO";
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                txtTitle.SetX(AppConstant.pControlLeft);
                txtTitle.SetY(AppConstant.pLastControlTop);
                txtTitle.SetWidth((int)AppConstant.pFieldLen);

                LObj.Add(txtTitle);

                //txtTitle.SetTextColor(Color.ParseColor(""+ColorValue));
                txtTitle.SetHeight((int)AppConstant.pControlHeight);
                //int ColorValue = System.Drawing.Color.FromName("blue").GetHashCode();
                txtTitle.SetTextColor(Android.Graphics.Color.ParseColor(redHex));
                ABlayout.AddView(txtTitle);

                LlLayout.AddView(ABlayout);

Example XML File

    <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:orientation="vertical"
    android:layout_height="match_parent">

    <android.support.v4.widget.NestedScrollView android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="visible"
        android:fillViewport="true">

    <LinearLayout android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:id="@+id/ABL_Runtime">

        </LinearLayout>

    </android.support.v4.widget.NestedScrollView>

</LinearLayout>

I edited my Question with example class and xml ,i created edit text run time and also get values runtime.Here i m using absolute layout for set edittext based on x ,y position.

Body:
Please try to use only one of them instead:

Window.SetSoftInputMode(SoftInput.AdjustPan);

The activity's main window is not resized to make room for the soft keyboard. Rather, the contents of the window are automatically panned so that the current focus is never obscured by the keyboard and users can always see what they are typing. This is generally less desirable than resizing, because the user may need to close the soft keyboard to get at and interact with obscured parts of the window.

Window.SetSoftInputMode(SoftInput.AdjustResize);

The activity's main window is always resized to make room for the soft
  keyboard on screen.

If you are working on a Xamarin.forms project, you can read this document for more information.


问:
How can I export gallery images from SquareSpace?
SquareSpace does not offer any way to export uploaded content directly. The only export option available is for WordPress, but this only generates a small XML file. What is the best way to download the actual image files from a gallery, other than right-clicking each image and choosing "Save as..."?</p>

答:
In Chrome: File > Save Page As > Web Page Complete

Do this for each page that you want to download the images from.


问:
Including one list component and excluding all other components repeatedly in R
I have a list of values. I would like to use the first value in one portion of a function and use the remaining values in a separate part of the function. Then, I would like to use the second value from the list in one portion of the function and use the remaining values (including the first value) in another part of the function.

The following is not real code since I have excluded some function inputs, but it shows what I am trying to do:

```<code>group <- c(1, 3, 4, 5, 9) #the complete group
#It is important to note that these values are not continuous. They are distinct values.

#include 1st unit of the list group as treatment and then use
#the remaining values as controls

controls_not2 <- c(3, 4, 5, 9)
df1 <- dataprep(treatment = 1, controls = controls_not1)
gaps.plot(dataprep = df1)

#use the 2nd unit from the list as the treatment and use
#the remaining values as controls

controls_not2 <- c(1, 4, 5, 9)
df2 <- dataprep(treatment = 3, controls = controls_not3)
gaps.plot(dataprep = df3)
</code>```

In the full list, I have about 50 values. Is there a way for me to iterate over all these values in the way I have shown above?

Here is some additional information.

Packages used:

```<code>library(tidyverse)
library(synth)
</code>```

Here is an example of what the full code looks like to create a single graph.

treatment.identifier is equivalent to what I have as treatment in the simple example above. controls.identifier is equivalent to what I have as controls in the example above.

```<code>dataprep.out1 <- dataprep(foo = as.data.frame(df),
                         predictors = predictors1,
                         predictors.op = "mean",
                         special.predictors = NULL,
                         dependent = "logfatalitiespercapita",
                         unit.variable = "state",
                         time.variable = "year",
                     treatment.identifier = "99",
                     controls.identifier = controlstates,
                     time.predictors.prior = c(1981:1985),
                     time.optimize.ssr = c(1981:1985), #check on these years
                     time.plot = 1981:2003,
                     unit.names.variable = "statenames")

#identifying weights that create the best possible synthetic control unit for the treated
synth.out1 <- synth(dataprep.out1)

#graph
spec1 <- gaps.plot(dataprep.res = dataprep.out1, synth.res = synth.out1, Xlab = c("Year"), Ylab = c("Gap"))
</code>```

答:
```<code>library(tidyverse)

myVec = 1:6

doSomething <- function(treatment, myVec){
  controls = myVec[! myVec == treatment]
  paste("Treatment:", treatment, "Controls:", paste(controls, collapse = "-"))
}
map_chr(myVec, ~ doSomething(.x, myVec))

[1] "Treatment: 1 Controls: 2-3-4-5-6" "Treatment: 2 Controls: 1-3-4-5-6" "Treatment: 3 Controls: 1-2-4-5-6"
[4] "Treatment: 4 Controls: 1-2-3-5-6" "Treatment: 5 Controls: 1-2-3-4-6" "Treatment: 6 Controls: 1-2-3-4-5"
</code>```

Body:
I have a list of values. I would like to use the first value in one portion of a function and use the remaining values in a separate part of the function. Then, I would like to use the second value from the list in one portion of the function and use the remaining values (including the first value) in another part of the function.

The following is not real code since I have excluded some function inputs, but it shows what I am trying to do:

group <- c(1, 3, 4, 5, 9) #the complete group
#It is important to note that these values are not continuous. They are distinct values.

#include 1st unit of the list group as treatment and then use
#the remaining values as controls

controls_not2 <- c(3, 4, 5, 9)
df1 <- dataprep(treatment = 1, controls = controls_not1)
gaps.plot(dataprep = df1)

#use the 2nd unit from the list as the treatment and use
#the remaining values as controls

controls_not2 <- c(1, 4, 5, 9)
df2 <- dataprep(treatment = 3, controls = controls_not3)
gaps.plot(dataprep = df3)

In the full list, I have about 50 values. Is there a way for me to iterate over all these values in the way I have shown above?

Here is some additional information.

Packages used:

library(tidyverse)
library(synth)

Here is an example of what the full code looks like to create a single graph.

treatment.identifier is equivalent to what I have as treatment in the simple example above. controls.identifier is equivalent to what I have as controls in the example above.

dataprep.out1 <- dataprep(foo = as.data.frame(df),
                         predictors = predictors1,
                         predictors.op = "mean",
                         special.predictors = NULL,
                         dependent = "logfatalitiespercapita",
                         unit.variable = "state",
                         time.variable = "year",
                     treatment.identifier = "99",
                     controls.identifier = controlstates,
                     time.predictors.prior = c(1981:1985),
                     time.optimize.ssr = c(1981:1985), #check on these years
                     time.plot = 1981:2003,
                     unit.names.variable = "statenames")

#identifying weights that create the best possible synthetic control unit for the treated
synth.out1 <- synth(dataprep.out1)

#graph
spec1 <- gaps.plot(dataprep.res = dataprep.out1, synth.res = synth.out1, Xlab = c("Year"), Ylab = c("Gap"))


问:
vs code alters jsx when saving .js file
I am trying to learn some React and I have a js file, client.js. I have a class inside the file that is very simple and just trying to return one line. I am using Visual Studio Code.

```<code>class Layout extends React.Component {
render() {
    return (
        <h1>Hello World!!</h1>
    );
  }
}
</code>```

However, every time I save the file in VS Code, it alters the jsx line to what follows.

```<code>class Layout extends React.Component {
    render() {
        return ( <
            h1 > Hello World!! < /h1>
        );
    }
}
</code>```

I can save it in notepad and things like that but not in VS Code. What am I doing wrong?

答:
If you're using Beautify extension then disable it.
It would work fine.</p>

Title: vs code alters jsx when saving .js file

Body:
I am trying to learn some React and I have a js file, client.js. I have a class inside the file that is very simple and just trying to return one line. I am using Visual Studio Code.

class Layout extends React.Component {
render() {
    return (

Hello World!!

    );
  }
}

However, every time I save the file in VS Code, it alters the jsx line to what follows.

class Layout extends React.Component {
    render() {
        return ( <
            h1 > Hello World!!

        );
    }
}

I can save it in notepad and things like that but not in VS Code. What am I doing wrong?


问:
:last-child is not being recognized
I have a scroll to function that I need to execute to scroll to the last message in its container, which is the container with chunk_id. The problem is that it works as is for going to the container, but if I add last-child into the mix the function does not work. Any ideas what I am doing wrong?

Works

```<code>$.scrollTo('div[chunk_id="'+autoscroll+'"]', 800, {easing:'elasout',offset:-250} );
</code>```

Does not

```<code>$.scrollTo('div[chunk_id="'+autoscroll+'"]:last-child', 800, {easing:'elasout',offset:-250} );
</code>```

答:
I think you want to find the last child element of the div.  Your code is currently selecting the last div with a particular chunk_id that is also the last child of its parent. This may well not exist.

You should use the child selector > combined with :last-child to find the last child element of the element already selected:

```<code>$.scrollTo('div[chunk_id="'+autoscroll+'"] > :last-child', 800, {easing:'elasout',offset:-250} );
</code>```

Title: :last-child is not being recognized

Body:
I have a scroll to function that I need to execute to scroll to the last message in its container, which is the container with chunk_id. The problem is that it works as is for going to the container, but if I add last-child into the mix the function does not work. Any ideas what I am doing wrong?

Works

$.scrollTo('div[chunk_id="'+autoscroll+'"]', 800, {easing:'elasout',offset:-250} );

Does not

$.scrollTo('div[chunk_id="'+autoscroll+'"]:last-child', 800, {easing:'elasout',offset:-250} );

Body:
I think you want to find the last child element of the div.  Your code is currently selecting the last div with a particular chunk_id that is also the last child of its parent. This may well not exist.

You should use the child selector > combined with :last-child to find the last child element of the element already selected:

$.scrollTo('div[chunk_id="'+autoscroll+'"] > :last-child', 800, {easing:'elasout',offset:-250} );


问:
how can i send a post request to php file and get respond with webRequest in firefox extnesion?
i tried to send request to server and given respond with ajax but it is not working and after search, i find webRequest api

How to use it correctly that include something like this:

url: https://example.com/example.php

method: post

param: name=john

答:
You wouldn't use the webRequest Api for that.

Nevertheless you are going to run into another problem: Cross Origin Resource Sharing (CORS)

If you want your extension to be able to make requests to example.org you will need to ask for permission on that host. The permission request is being made in your manifest.json as described here.

When you have granted your extension permission to the host, you can simply fetch data via ajax.


问:
How to save all raw files from a web browser?
How can i save all pages sources loaded from a website, including images, js files, and any webstream to some local folder, while i am visiting them?

So i need to be able to use the browser normally, but then later be able to inspect the source files, one by one.

I used to use "Fiddler" with a special plugin, but recently, some sites do not work at all with it enabled.
My guess, probably because the fake HTTPS it adds, and that the webapps now directly verify the HTTPS ceritificate, or because of 'webstreams'.

So is there a proxy to offer similar behavior, or a way to do it from within the browser itself.

答:
You can export your history from the browser and use some external tools that can do the scraping

ie. python scrapy (with coding)
or wget with few option without coding


问:
Sitemesh, Cannot construct Factory : com.opensymphony.module.sitemesh.factory.DefaultFactory:
I use the version 2.4.2 of SiteMesh with Spring

```<code><dependency>
        <groupId>opensymphony</groupId>
        <artifactId>sitemesh</artifactId>
        <version>2.4.2</version>
    </dependency>
</code>```

I deploy my application with the name myApp.war and everything works properly. I need to deploy the application myapp##versionApp.war name and this name gives problems.

The error is

Cannot construct Factory : com.opensymphony.module.sitemesh.factory.DefaultFactory: com.opensymphony.module.sitemesh.factory.FactoryException: Could not read config file : /WEB-INF/sitemesh.xml: java.io.FileNotFoundException:

I have found that exists in the WEB-INF / directory / file the sitemesh.xml.

Can you help me?

答:
DefaultFactory.java uses the Deprecate File.toURL() API. there is a problem reading sitemesh.xml file.

Please update your sitemesh version to sitemesh:2.5-atlassian-11

sitemesh:2.5-atlassian-11 Bugfix commit

Body:
I use the version 2.4.2 of SiteMesh with Spring

<dependency>
        <groupId>opensymphony</groupId>
        <artifactId>sitemesh</artifactId>
        <version>2.4.2</version>
    </dependency>

I deploy my application with the name myApp.war and everything works properly. I need to deploy the application myapp##versionApp.war name and this name gives problems.

The error is

Cannot construct Factory : com.opensymphony.module.sitemesh.factory.DefaultFactory: com.opensymphony.module.sitemesh.factory.FactoryException: Could not read config file : /WEB-INF/sitemesh.xml: java.io.FileNotFoundException:

I have found that exists in the WEB-INF / directory / file the sitemesh.xml.

Can you help me?